package com.yun.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yun.blog.bean.Tag;
import com.yun.blog.bean.TagRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * title        : TagRelationMapper
 * projectName  : dantouBlog-back
 * description  : TODO
 * author       : simple
 * date         : 2022/11/23下午9:22
 */
@Mapper
public interface TagRelationMapper extends BaseMapper<TagRelation> {

    int delByBlogId(@Param("blogId") Integer blogId);

    List<Tag> getByBlogId(@Param("blogId") Integer blogId);

    Integer countByTagId(@Param("tagId") Integer tagId);
}
